# def test():
#     return 10, 20
#
# result = test()
# print(type(result)) #<class 'tuple'>

# a = () #方法一
# b = tuple() #方法二
# print(type(a)) #<class 'tuple'>
# print(type(b)) #<class 'tuple'>


# a = [1, 2, 3, 4, 5]
# b = [6, 7, 8, 9, 10]
# a.extend(b)
# print(a) #[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
# print(b) #[6, 7, 8, 9, 10]

# print(a + b) #[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]


# a.remove(1)
# print(a) #[2, 3, 4, 5]

# a.pop(1)
# print(a) #[1, 3, 4, 5]

# a.pop()
# print(a) #[1, 2, 3, 4]

#print(a.index(6))


# print(1 not in a) #False
# print(6 not in a) #True



# a.insert(1, 6)
# print(a) #[1, 6, 2, 3, 4, 5]


# a = [1, 2, 3, 4, 5]
# a.append(6)
# print(a)


# a = [1, 2, 3, 4, 5]
# i = 0
# while i < len(a):
#     print(a[i])
#     i = i + 1


# for i in a:
#     print(i)


# a = [1, 2, 3, 4, 5]
# for i in range(0, len(a)):
#     if i == 3:
#         a[i] = a[i] * 2
# print(a) #[1, 2, 3, 8, 5]


# for i in a:
#     i = i * 2
# print(a) #[1, 2, 3, 4, 5]






# for i in a:
#     print(i)

# print(a[1 : 100]) #[2, 3, 4, 5]


# a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0]
# print(a[::-1])
# print(a[::-2])
# print(a[::-3])



# a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0]
# print(a[:])
# print(a[::1])
# print(a[::2])
# print(a[::3])
# print(a[::4])
# print(a[::5])

# a = [1, 2, 3, 4, 5]
# print(a[2:]) #省略后边界，表示一直获取到列表末尾
# print(a[:3]) #省略前边界，表示从列表开头开始获取
# print(a[:]) #省略两个边界，表示获取整个列表

#print(a[1 : 3]) #[2, 3]

# print(a[2])
# print(a[-3])

#print(len(a))

# print(a[100])

# a[2] = 300
# print(a) # [1, 2, 300, 4, 5]


# a = [1, 2, 3, 4, 5]
# print(a[2]) #3


# a = [1, 5.2, 'hello', True]
# print(a)

# a = [1, 2, 3, 4, 5]
# print(a)

# a = [] #方法一
# b = list() #方法二
# print(type(a))
# print(type(b))